//
//  PlayerSingle.h
//  喜马拉雅FM
//
//  Created by dllo on 16/3/7.
//  Copyright © 2016年 lanou.com. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>

@interface PlayerSingle : NSObject

// 视图层面.
@property (nonatomic, retain) UIImageView *imageBackGroundView;
@property (nonatomic, retain) UILabel *labelForTitle;
@property (nonatomic, retain) UIImageView *imageCoverLarge;


// 功能层面.
@property (nonatomic, retain) UIView *visualView;
@property (nonatomic, retain) AVPlayer *player;
@property (nonatomic, retain) AVPlayerItem *playerItem;
@property (nonatomic, retain) UIButton *buttonPlayOrPause;
@property (nonatomic, retain) UIButton *buttonRight;
@property (nonatomic, retain) UIButton *buttonLeft;
@property (nonatomic, retain) UIProgressView *progress;


+ (instancetype)sharePlayer;

- (void)playWithUrl:(NSURL *)url showView:(UIView *)showView;


@end
